home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 December
/
PCWorld_2007-12_cd.bin
/
domacnost a kancelar
/
autoit
/
autoit-v3-setup.exe
/
Examples
/
Helpfile
/
_SQLite_QuerySingleRow.au3
< prev
next >
Wrap
Text File
|
2007-09-08
|
713b
|
15 lines
#include <SQLite.au3>
#include <SQLite.dll.au3>
Local $aRow
_SQLite_Startup ()
_SQLite_Open () ; open :memory: Database
_SQLite_Exec(-1,"CREATE TEMP TABLE settings (key,value);")
_SQLite_Exec(-1,"INSERT INTO settings (key,value) VALUES ('1','setting one');")
_SQLite_Exec(-1,"INSERT INTO settings (key,value) VALUES ('2','setting two');")
_SQLite_Exec(-1,"INSERT INTO settings (key,value) VALUES ('3','setting Three');")
_SQLite_Exec(-1,"INSERT INTO settings (key,value) VALUES ('4','setting Four');")
_SQLite_QuerySingleRow(-1,"SELECT value FROM settings WHERE key = '2' LIMIT 1;",$aRow) ; Select single row and single field !
MsgBox(0,"setting two:",$aRow[0])
_SQLite_Close ()
_SQLite_Shutdown ()